function tipBigController(flag) {
    /*地点列表状态*/
    if (flag) {
        $(".big-markerboxlist-bg").removeClass("hide");
    } else {
        $(".big-markerboxlist-bg").addClass("hide");
    }
}

//关闭按钮
$(".big-btn-close").on("click", function () {
    tipBigController(false)
});
//搜索 框
// $(".big-markerboxlist-bg").on("click", function () {
//     tipBigController(false)
// });


function tipXiangmu(xiangmu_data) {
    let tableHtml = ""
    $(".table_xiangmu").empty()
    $.each(xiangmu_data, function (index, item) {
        let template =
            "          <div class='table_xiangmu_div scrollbar-y'> " +
            "             <table class='table_xiangmu'> " +
            "                <tr> " +
            "                    <td  colspan='3' class='table_xiangmu_title'> ? </td>" +
            "                </tr>" +
            "                <tr>" +
            "                    <td  class='table_xiangmu_left_1' valign='top'><img src='./images/06.title.small.png'> </td>" +
            "                    <td class='table_xiangmu_left_2'   valign='top'>实施主体</td>" +
            "                    <td class='table_xiangmu_left_3'  valign='top'>?</td>" +
            "                </tr>" +
            "                <tr>" +
            "                    <td  class='table_xiangmu_left_1'  valign='top'><img src='./images/06.title.small.png'> </td>" +
            "                    <td class='table_xiangmu_left_2'   valign='top'>项目内容</td>" +
            "                    <td class='table_xiangmu_left_3'  valign='top'>?</td>" +
            "                </tr>" +
            "                    <td   class='table_xiangmu_left_1'  valign='top'><img src='./images/06.title.small.png'> </td>" +
            "                    <td class='table_xiangmu_left_2'   valign='top'>预期成效</td>" +
            "                    <td class='table_xiangmu_left_3' valign='top'>?</td>" +
            "                </tr>" +
            "                    <td   class='table_xiangmu_left_1'  valign='top'><img src='./images/06.title.small.png'> </td>" +
            "                    <td class='table_xiangmu_left_2'   valign='top'>完成时限</td>" +
            "                    <td class='table_xiangmu_left_3'  valign='top'>?</td>" +
            "                </tr>" +
            "                </tr>" +
            "                    <td   class='table_xiangmu_left_1' > </td>" +
            "                    <td class='table_xiangmu_left_2' > </td>" +
            "                    <td class='table_xiangmu_see'  >查看>> </td>" +
            "                </tr>" +
            "                </table>"+
            "            </div>"
        template = template.format(item.PROJECT_NAME, item.IMPLEMENTER, item.CONTENT, item.EXPECTED_EFFECT, item.DEADLINE);
        tableHtml += template
    })

    $(".big-active-content").html(" <div class='div_table scrollbar-y'> " + tableHtml + "</div>")
    tipBigController(true)
}

function tipXiyuan(date_ziyuan) {
    tipBigController(true)
}

/*
$('.dangzuzhi').on('click', function (event) {
    // 获取点击事件的目标元素
    // 获取元素的类名
    var id = event.currentTarget.id;
    if (id === "xuqiu") {
        $(".big-active-title").text("需求清单")
        tipXuqiu(date_ziyuan)
    } else if (id === "zijin") {
        $(".big-active-title").text("资源清单")
        tipZiyuan(date_ziyuan)
    } else if (id === "xiangmu") {
        $(".big-active-title").text("项目清单")
        tipXiangmu(date_ziyuan)
    }

})
*/

function tipZiyuan(table_data) {
    // date_pageSum = Math.ceil(date_ziyuan.length / 9)

    let tableHtml = '<div class="table_ziyan_div  scrollbar-y"> <table class="table_ziyan"> </table></div>'
    let pageHtml = '<div class="page-controller"></div>'
    $(".big-active-content").html(tableHtml + pageHtml)
    initTable("ziyuan", "资源清单内容", table_data)
    tipBigController(true)
}

function tipXuqiu(table_data) {
    // date_pageSum = Math.ceil(date_ziyuan.length / 9)
    let tableHtml = '<div class="table_ziyan_div  scrollbar-y"> <table class="table_ziyan"> </table></div>'
    let pageHtml = '<div class="page-controller"></div>'
    $(".big-active-content").html(tableHtml + pageHtml)
    /*        changePageButton()
            changePageNum("page-button-1", 1)*/
    initTable("ziyuan", "需求清单内容", table_data)
    tipBigController(true)
}

// 项目清单


function tipBigController_0_5(flag) {
    /*地点列表状态*/
    if (flag) {
        $(".big-markerboxlist-bg-0_5").removeClass("hide");
    } else {
        $(".big-markerboxlist-bg-0_5").addClass("hide");
    }
}

//关闭按钮
$(".big-btn-close-0_5").on("click", function () {
    tipBigController_0_5(false)
});


function tipController(flag) {
    /*地点列表状态*/
    if (flag) {
        $(".markerboxlist").removeClass("hide");
    } else {
        $(".markerboxlist").addClass("hide");
    }

}



